package com.hk.service.impl;

import com.hk.dao.CompanyProfileDao;
import com.hk.model.CompanyProfile;
import com.hk.service.ICompanyProfileService;

/**
 * @Author: KangWang
 * Date: 2021/5/18 18:08
 * State：公司简介业务逻辑层
 */
public class CompanyProfileServiceImpl implements ICompanyProfileService {


    @Override
    public CompanyProfile findAllCompanyProfile() {
        CompanyProfileDao companyProfileDao = new CompanyProfileDao();
        CompanyProfile companyProfile = companyProfileDao.findAllCompanyProfile();
        if (companyProfile == null) {
            System.out.println("无数据");
            return null;
        }
        return companyProfile;
    }
}
